<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class UserController extends Controller
{
    public function __construct()
    {
            $this -> middleware('login',['only' => ['add']]);
    }
    public function add()
    {
        echo 'add';
    }
    public function delete()
    {
        echo 'delete';
    }
    public function login()
    {
        return '登录成功';
    }
}
